/**    
 * @Title: BusinessException.java  
 * @Package com.zfsoft.util.exception  
 * @Description: 
 * @author Rain   
 * @date 2011-2-23 下午03:53:03  
 * @version V1.0    
 */

package com.company.emenu.exception;

/**
 * @Description:
 * @author Rain
 */
public class BusinessException extends RuntimeException{

	/** 出错对象 */
	private Object source;
	/** 业务方法 */
	private String methodName;
	/** 业务方法中文名 */
	private String hintName;

	public BusinessException() {
	}

	public BusinessException(String message) {
		super(message);
	}

	public BusinessException(String message, Throwable cause) {
		super(message, cause);
	}

	public BusinessException(Throwable cause) {
		super(cause);
	}

	public BusinessException(Object obj, String methodName, String hintName,
			String message, Throwable cause) {
		super(message, cause);
		this.source = obj;
		this.methodName = methodName;
		this.hintName = hintName;
	}

	public BusinessException(Object obj, String methodName, String hintName,
			String message) {
		super(message);
		this.source = obj;
		this.methodName = methodName;
		this.hintName = hintName;
	}

	public String getHintName() {
		return hintName;
	}

	public String getMethodName() {
		return methodName;
	}

	public Object getSource() {
		return source;
	}
}
